package com.topisv.tms.entity;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.fasterxml.jackson.annotation.JsonIgnore;

@Entity
@Table(name = "tbl_role")
public class Role extends IdEntity {
	private String rolename;
	private String roleintro;
	private String status;
	private Date updated;
	
	private Long[] permissions;

	public Role() {
	}

	public Role(Long id) {
		this.id = id;
	}
	
	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public String getRoleintro() {
		return roleintro;
	}

	public void setRoleintro(String roleintro) {
		this.roleintro = roleintro;
	}

	public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	@Transient
	@JsonIgnore
	public Long[] getPermissions() {
		return permissions;
	}

	public void setPermissions(Long[] permissions) {
		this.permissions = permissions;
	}

}